﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Softyum.ForexAgent.Site
{
    public class WebSiteCategory
    {
        public string Name { get; set; }

        public string Path { get; set; }

        public IList<WebPage> Pages { get; private set; }

        public WebSiteCategory()
        {
            Pages = new List<WebPage>();
        }

        internal void Rename(string name)
        {
            DirectoryInfo di = new DirectoryInfo(Path);
            string nPath = di.Parent + @"\"+ name;
            di.MoveTo(nPath);
        }
    }
}
